import axios from '@/libs/request/axios'
/**
 * 获取归档列表
 * @param params
 */
export const getDocList = (params) => {
    return axios.request({
        url: "apply/post/getDocList",
        method: "POST",
        data: params,

    })
}
/**
 * //创建运单信息
 * @param {*} params 
 */
export const newPostInfo = (params) => {
    return axios.request({
        url: "apply/post/newPostInfo",
        method: "POST",
        data: params,

    })
}
/**
 * 保存运单信息
 * @param params
 */
export const savePostInfo = (params) => {
    return axios.request({
        url: "apply/post/savePostInfo",
        method: "POST",
        data: params,

    })
}
/**
 * 查找最新运单
 * @param params
 */
export const getPostInfo = (params) => {
    return axios.request({
        url: "apply/post/getPostInfo",
        method: "POST",
        params: params,

    })
}
/**
 * 编辑运单接口
 * @param params
 */
export const editPostInfo = (params) => {
    return axios.request({
        url: "apply/post/editPostInfo",
        method: "POST",
        data: params,

    })
}
/**
 * 编辑查看归档信息
 * @param params
 */
export const editDocInfo = (params) => {
    return axios.request({
        url: "apply/post/editDocInfo",
        method: "POST",
        data: params,

    })
}
/**
 * 提交归档信息
 * @param params
 */
export const submitDocInfo = (params) => {
    return axios.request({
        url: "apply/post/submitDocInfo",
        method: "POST",
        data: params,

    })
}
/**
 * 查询运单的归档列表
 * @param params
 */
export const getPostDocList = (params) => {
    return axios.request({
        url: "apply/post/getPostDocList",
        method: "POST",
        data: params,

    })
}
/**
 * 删除运单的归档
 * @param params
 */
export const deletePostDocInfo = (params) => {
    return axios.request({
        url: "apply/post/deletePostDocInfo",
        method: "POST",
        data: params,
    })
}
/**
 * 提交运单信息
 * @param params
 */
export const submitPostInfo= (params) => {
    return axios.request({
        url: "apply/post/submitPostInfo",
        method: "POST",
        data: params,
    })
}
/**
 * 档案系统数据字典接口
 * @param params
 */
export const getCodes= (params) => {
    return axios.request({
        url: "apply/moreProduct/getcodes",
        method: "POST",
        data: params,
    })
}
/**
 * 邮包管理页面的邮单列表接口
 */
export const getmailList= (params) => {
    return axios.request({
        url: "apply/moreProduct/getlist",
        method: "POST",
        data: params,
    })
}
/**
 * 邮包详情页面的邮单详情接口
 */
export const getmailDetail= (params) => {
    return axios.request({
        url: "apply/moreProduct/getdetail",
        method: "POST",
        data: params,
    })
}
/**
 * 邮寄信息查看页面的详情接口
 */
export const getPostInfoDetail= (params) => {
    return axios.request({
        url: "apply/moreProduct/editview",
        method: "POST",
        data: params,
    })
}
/**
 *获取挂靠信息
 */
export const queryanchoredinfo= (params) => {
    return axios.request({
        url: "apply/post/getanchoredinfo",
        method: "POST",
        data: params,
    })
}
/**
 * 下载文件
 * @param params
 */
export const downFile = (params) => {
    return axios.request({
        url: "apply/post/downFile",
        method: "POST",
        data: params,
        responseType: 'arraybuffer'
    })
}

/**
 * 上传文件
 * @param params
 */
export const uploadFile = (params) => {
    return axios.request({
        url: "apply/post/uploadFile",
        method: "POST",
        data: params,
    })
}
// 删除文件
export const delImage=(params)=>{
    return axios.request({
        url: "apply/moreProduct/delImageFormFms",
        method: "POST",
        data: params,
    })
}


